package com.twu.biblioteca;

/**
 * Created with IntelliJ IDEA.
 * User: mini server
 * Date: 9/20/13
 * Time: 3:33 AM
 * To change this template use File | Settings | File Templates.
 */
public class CheckMembershipView implements IView{
    @Override
    public String display()
    {
        if(BibliotecaApp.user.authenticate())
            return BibliotecaApp.user.getName() + " " + BibliotecaApp.user.getEmailAddress() + " " + BibliotecaApp.user.getPhoneNumber() + "\n";

        return "Please talk to a Librarian. Thank you.\n";
    }

    @Override
    public IView interact()
    {
        return new MenuView();
    }
}
